<!DOCTYPE html>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@taglib prefix="spring" uri="http://www.springframework.org/tags" %>

<html>
	<head>
		<meta charset="utf-8">
		<title>Issue management : <spring:message code="update.issue" text="Update Issue" var="issueUpdate" /></title>
		<!-- Author: Fer Zacrón -->
	</head> 
	<body>
		<header>
		<h1>${issueUpdate}</h1>
			<nav>
				<%@ include file="Nav.jsp" %>
			</nav>
		</header>
		<spring:url value="/issue/saveupdate" var="urlupdate" />
		<form:form method="post" action="${urlupdate}" commandName="issue">
		<form:hidden path="id" />
       <div>
			<form:label path="name">
				<spring:message code="issue.name" text="Name" />
			</form:label>
			<form:errors path="name" />
		</div>
		<div>
			<form:input path="description" />
		</div>
		<div>
			<form:label path="description">
				<spring:message code="issue.description" text="Description" />
			</form:label>
			<form:errors path="description" />
		</div>
		<div>
			<form:input path="description" />
		</div>

		<div>
			<form:label path="date">
				<spring:message code="issue.date" text="Date" />
			</form:label>
			<form:errors path="date" />
		</div>
		<div>
			<form:input path="date" />
		</div>
		
		<div>
        	<form:label path="idIssueType"><spring:message code="issue.idIssueType" text="ID issue type" /></form:label>
        	<form:errors path="idIssueType" />
        </div>
        <div><form:input path="idIssueType" /></div> 
        
        <div>
            <input type="submit" value="${issueUpdate}" />
        </div>
     
</form:form>
	</body>
</html>